package com.xiaorun.portal.constant;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * Created by BlueT on 2018/3/3.
 */
@Component
public class WebConst {
    /**
     * 存储安装信息的配置文件名称
     */
    public static final String INSTALL_FILE_CONF = "install.lock";

    public static Map<String, String> initConfig = new HashMap<>();


    public static String LOGIN_SESSION_KEY = "login_user";

    public static final String USER_IN_COOKIE = "S_L_ID";

    /**
     * aes加密加盐
     */
    public static String AES_SALT = "0123456789abcdef";

    /**
     * 最大获取文章条数
     */
    public static final int MAX_POSTS = 9999;

    /**
     * 最大页码
     */
    public static final int MAX_PAGE = 100;

    /**
     * 文章最多可以输入的文字数
     */
    public static final int MAX_TEXT_COUNT = 200000;

    /**
     * 文章标题最多可以输入的文字个数
     */
    public static final int MAX_TITLE_COUNT = 200;

    /**
     * 点击次数超过多少更新到数据库
     */
    public static final int HIT_EXCEED = 10;

    /**
     * 上传文件最大1M
     */
    public static Integer MAX_FILE_SIZE = 1048576;

    /**
     * 要过滤的ip列表
     */
    public static final Set<String> BLOCK_IPS = new HashSet<>(16);


    /**
     * 类型
     */
    public static String IDENTIFICATION_CAROUSELS = "IDENTIFICATION_CAROUSELS";
    public static String APPLICATION_CAROUSELS = "APPLICATION_CAROUSELS";
    public static String TAX_CAROUSELS = "TAX_CAROUSELS";
    public static String IPO_CAROUSELS = "IPO_CAROUSELS";
    public static String LAND_CAROUSELS = "LAND_CAROUSELS";
    public static String ABOUT_CAROUSELS = "ABOUT_CAROUSELS";

    public static String IPO_SERVICES = "IPO_SERVICES";
    public static String IDENTIFICATION_PARTNER = "IDENTIFICATION_PARTNER";

    public static String APPLYING = "APPLYING";
    public static String END = "END";


    /**
     * 模块
     */
    public static String IDENTIFICATION = "IDENTIFICATION";
    public static String APPLICATION = "APPLICATION";
    public static String TAX = "TAX";
    public static String IPO = "IPO";
    public static String LAND = "LAND";
    public static String ABOUT = "ABOUT";


    /**
     * 成功案例类型
     */
    public static String INTERNET = "INTERNET";//互联网
    public static String NEW_ENERGY = "NEW_ENERGY";//新能源
    public static String BIOLOGY_MEDICINE = "BIOLOGY_MEDICINE";//生物与新医药

    /**
     * 成功案例类型
     */
    public static String LONGHUA = "LONGHUA";//龙华区
    public static String BAOAN = "BAOAN";//宝安区
    public static String NANSHAN = "NANSHAN";//南山区
    public static String FUTIAN = "FUTIAN";//福田区
    public static String LUOHU = "LUOHU";//罗湖区
    public static String LONGGANG = "LONGGANG";//龙岗区
    public static String GUANGMING = "GUANGMING";//光明新区

    //公告类型
    public static String TDGG = "TDGG";//土地公告
    public static String ZCFG = "ZCFG";//政策法规



}
